#include "../syncup-service.h"

int main()
{
    RPC_STATUS st;
    unsigned char *str_binding;
    RPC_BINDING_HANDLE syncup_service_hd;

    st = RpcStringBindingComposeA(NULL, (unsigned char *) SYNCUP_RPC_PROTO_SEQ,
            NULL, (unsigned char *) SYNCUP_RPC_EP, NULL, &str_binding);
    if (st) {
        exit(st);
    }
    st = RpcBindingFromStringBindingA(str_binding, &syncup_service_hd);
    if (st) {
        exit(st);
    }

    syncup_service_label_path(syncup_service_hd,
            (unsigned char *) "this is a test");

    st = RpcStringFree(&str_binding);
    if (st) {
        exit(st);
    }
    st = RpcBindingFree(&syncup_service_hd);
    if (st) {
        exit(st);
    }

    return 0;
}
